﻿<UserControl x:Class="Starehe.Views.NewGalleryItem"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:Controls="clr-namespace:Helper.Controls;assembly=Helper"
             mc:Ignorable="d" d:DesignHeight="700" d:DesignWidth="984"
             Background="White">
    <Grid>
        <TextBlock HorizontalAlignment="Left" Margin="20,20,0,0" Style="{DynamicResource Title}"  Text="New Gallery Item" 
                   VerticalAlignment="Top"/>
        <Border BorderBrush="Silver" BorderThickness="2" Margin="50,100,50,80">
            <Grid>

                <Image Source="{Binding MediaSource}" 
                   Visibility="{Binding ElementName=browseGrid, Path=Visibility, Converter={StaticResource InverseVisibilityConverter}}"/>
            </Grid>
        </Border>
        <Grid Name="browseGrid" VerticalAlignment="Center" HorizontalAlignment="Center" 
              Visibility="{Binding IsSelecting, Converter={StaticResource BooleanToVisibilityConverter}}">
            <TextBlock VerticalAlignment="Top" HorizontalAlignment="Center" Foreground="Silver" 
                           Text="Drag File Here" Style="{DynamicResource Title}"/>
            <TextBlock HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,40,0,0" Style="{DynamicResource ContentTextSemiBold}"
                           Foreground="Silver">
                    or <Hyperlink Command="{Binding BrowseCommand}">browse</Hyperlink> for a file
            </TextBlock>
        </Grid>
        <Button Width="100" Command="{Binding SaveCommand}" Content="Save" HorizontalAlignment="Right" Margin="0,0,20,20" VerticalAlignment="Bottom"/>


    </Grid>
</UserControl>
